var mongoose = require('mongoose'),
materializedPlugin = require('mongoose-materialized'),
Schema = mongoose.Schema;

//tree字段为text
var CateSchema = new Schema({
    text: {type: String}
});


CateSchema.plugin(materializedPlugin);
module.exports = mongoose.model('Cate', CateSchema,'cate'); // Category